12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <sendvisalst>
- <item>
- <sel/>
- <sendflag/>
- <printyn/>
- <senddd/>
- <sendaddrflag/>
- <pid/>
- <visano/>
- <psptno/>
- <engnm/>
- <rrgstno/>
- <trnfileno/>
- <remarks/>
- <orddd/>
- <healexamflag/>
- <instcd/>
- <healexamdetlflag/>
- <pkgnm/>
- <hngnm/>
- <etcuse26/>
- <etcuse160/>
- <etcusexray/>
- <etcuseother/>
- <courcmpy/>
- <courtracno/>
- <labrslt/>
- <pkgcd/>
- <rsrvno/>
- <rsrvdd/>
- <brthdd/>
- <sex/>
- <subclass/>
- <reqtests/>
- <rsltreqtests/>
- <specoption/>
- <signdr/>
- <signdrdept/>
- <signdrcd/>
- <signdrdeptcd/>
- <age/>
- </item>
- <item2>
- <sel/>
- <sendflag/>
- <printyn/>
- <senddd/>
- <sendaddressflag/>
- <pid/>
- <visano/>
- <engnm/>
- <rrgstno/>
- <engaddress/>
- <orddd/>
- <orddd2/>
- <healexamflag/>
- <instcd/>
- <healexamdetlflag/>
- <subclass/>
- <reqtests/>
- <rsltreqtests/>
- <specoption/>
- <signdr/>
- <signdrcd/>
- <signdrdept/>
- <signdrdeptcd/>
- <pkgnm/>
- <hngnm/>
- <pkgcd/>
- <subclass/>
- <requiretest/>
- <resultoftest/>
- <specialoption/>
- <letterdoctor/>
- <letterdoctordept/>
- <letterdoctorsign/>
- <sex/>
- <brthdd/>
- <age/>
- <rsrvdd/>
- <rsrvno/>
- <etcuse26/>
- <etcuse160/>
- <etcusexray/>
- <etcuseother/>
- <courcmpy/>
- <courtracno/>
- <trnfileno/>
- <remarks/>
- <labrslt/>
- </item2>
- <item3>
- <sel/>
- <sendflag/>
- <printyn/>
- <senddd/>
- <sendaddressflag/>
- <pid/>
- <visano/>
- <engnm/>
- <rrgstno/>
- <engaddress/>
- <orddd/>
- <orddd2/>
- <healexamflag/>
- <instcd/>
- <healexamdetlflag/>
- <subclass/>
- <reqtests/>
- <rsltreqtests/>
- <specoption/>
- <signdr/>
- <signdrcd/>
- <signdrdept/>
- <signdrdeptcd/>
- <pkgnm/>
- <hngnm/>
- <pkgcd/>
- <subclass/>
- <requiretest/>
- <resultoftest/>
- <specialoption/>
- <letterdoctor/>
- <letterdoctordept/>
- <letterdoctorsign/>
- <sex/>
- <brthdd/>
- <age/>
- <rsrvdd/>
- <rsrvno/>
- <etcuse26/>
- <etcuse160/>
- <etcusexray/>
- <etcuseother/>
- <courcmpy/>
- <courtracno/>
- <trnfileno/>
- <remarks/>
- <labrslt/>
- </item3>
- </sendvisalst>
- <sendresultflag>V</sendresultflag>
- <letterlist>
- <item3>
- <subclass/>
- <requiretest/>
- <resultoftest/>
- <specialoption/>
- <letterdoctor/>
- <letterdoctordept/>
- <letterdoctorsign/>
- </item3>
- </letterlist>
- </main>
- <send>
- <instcd/>
- <srchsendflag/>
- <healexamflag/>
- <healexamdetlflag/>
- <srchfromdd/>
- <srchtodd/>
- <visano/>
- <save>
- <senddata/>
- <updata>
- </updata>
- <indata/>
- <inslett/>
- <lettdata>
- <sel/>
- <sendflag/>
- <printyn/>
- <senddd/>
- <sendaddressflag/>
- <pid/>
- <visano/>
- <engnm/>
- <rrgstno/>
- <engaddress/>
- <orddd/>
- <healexamflag/>
- <instcd/>
- <healexamdetlflag/>
- <subclass/>
- <requiretest/>
- <resultoftest/>
- <specialoption/>
- <letterdoctor/>
- <letterdoctordept/>
- <letterdoctorsign/>
- <pkgnm/>
- <hngnm/>
- <pkgcd/>
- </lettdata>
- </save>
- <srchvisa>
- <req>
- <sendflag/>
- <instcd/>
- <healexamflag/>
- <healexamdetlflag/>
- <fromdd/>
- <todd/>
- <pid/>
- <visano/>
- <brthareacnts/>
- </req>
- </srchvisa>
- <srchvisa2>
- <req>
- <sendflag/>
- <instcd/>
- <healexamflag/>
- <healexamdetlflag/>
- <fromdd/>
- <todd/>
- <pid/>
- <visano/>
- <subclass/>
- <requiretest/>
- <resultoftest/>
- <specialoption/>
- <letterdoctor/>
- <letterdoctordept/>
- <letterdoctorsign/>
- <brthareacnts/>
- </req>
- </srchvisa2>
- <srchvisa3>
- <req>
- <sendflag/>
- <instcd/>
- <healexamflag/>
- <healexamdetlflag/>
- <fromdd/>
- <todd/>
- <pid/>
- <visano/>
- <brthareacnts/>
- </req>
- </srchvisa3>
- <visadata>
- <insdata>
- <req>
- <sel/>
- <sendflag/>
- <printyn/>
- <senddd/>
- <sendaddressflag/>
- <pid/>
- <visano/>
- <engnm/>
- <rrgstno/>
- <engaddress/>
- <orddd/>
- <healexamflag/>
- <instcd/>
- <healexamdetlflag/>
- <subclass/>
- <requiretest/>
- <resultoftest/>
- <specialoption/>
- <letterdoctor/>
- <letterdoctordept/>
- <letterdoctorsign/>
- </req>
- </insdata>
- </visadata>
- <printdata/>
- <healexampid/>
- <ipt_pnm/>
- <brthareacnts/>
- <sendgubun/>
- <tmp>
- <sendflag/>
- </tmp>
- </send>
- <init>
- <baseinfo>
- <sendflag>
- <A0483>
- <cdid/>
- <cdnm/>
- </A0483>
- </sendflag>
- <healexamdetlflag>
- <A0070>
- <cdid/>
- <cdnm/>
- </A0070>
- </healexamdetlflag>
- <doctorlst>
- <A0484>
- <cdid/>
- <cdnm/>
- </A0484>
- </doctorlst>
- <doctordeptlst>
- <A0485>
- <cdid/>
- <cdnm/>
- </A0485>
- </doctordeptlst>
- <sendaddressflag>
- <A0468>
- <cdid/>
- <cdnm/>
- </A0468>
- </sendaddressflag>
- <nationlst>
- <A0465>
- <cdid/>
- <cdnm/>
- </A0465>
- </nationlst>
- </baseinfo>
- </init>
- <hidden/>
- <tmp>
- <item2>
- <sel/>
- <sendflag/>
- <printyn/>
- <senddd/>
- <sendaddressflag/>
- <pid/>
- <visano/>
- <engnm/>
- <rrgstno/>
- <engaddress/>
- <orddd/>
- <healexamflag/>
- <instcd/>
- <healexamdetlflag/>
- <subclass/>
- <requiretest/>
- <resultoftest/>
- <specialoption/>
- <letterdoctor/>
- <letterdoctordept/>
- <letterdoctorsign/>
- <pkgnm/>
- <hngnm/>
- <pkgcd/>
- </item2>
- <print>
- <letter>
- </letter>
- </print>
- </tmp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <submission id="TRAHA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sendcdlst"/>
- <submission id="TXAHA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden"/>
- <submission id="TRZBC00101"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 기존의 발송 관리
- model.removeNodeset("/root/init/baseinfo/sendflag/A0121");
- //비자 발송 코드
- model.removeNodeset("/root/init/baseinfo/sendflag/A0483");
- //건진 상세 구분
- model.removeNodeset("/root/init/baseinfo/healexamdetlflag/A0070");
- //비자레터 서명의사
- model.removeNodeset("/root/init/baseinfo/doctorlst/A0484");
- //서명의사 부서구분
- model.removeNodeset("/root/init/baseinfo/doctordeptlst/A0485");
- //비자 주소 상세구분
- model.removeNodeset("/root/init/baseinfo/sendaddressflag/A0468");
- //국가 구분
- model.removeNodeset("/root/init/baseinfo/nationlst/A0465");
-
-
- zbcfGetCodeList( new Array("A0483" ,"A0070","A0484","A0485","A0468","A0465"),
- new Array("/root/init/baseinfo/sendflag"
- ,"/root/init/baseinfo/healexamdetlflag"
- ,"/root/init/baseinfo/doctorlst"
- ,"/root/init/baseinfo/doctordeptlst"
- ,"/root/init/baseinfo/sendaddressflag"
- ,"/root/init/baseinfo/nationlst") );
- submit("TRZBC00101");
- fInitCtrl(true);
- //발송구분을 꼭 넣어줘야함
- //건진 상세 구분
- cmb_healexamdetlflag.select(0);
- cmb_brthareacnts.select(1);
- cmb_sendgubun.select(0);
- submit("TRAHA00618");
- cmb_sendflag.select(0);
- model.refresh();
- ]]>
- </script>
- <submission id="TRAHA00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/senddata" resultref="/root/tmp"/>
- <submission id="TRAHA00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAHA00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sendcdlst/item"/>
- <submission id="TRAHA00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa/req" replace="instance" resultref="/root/main/sendvisalst"/>
- <submission id="TRAHA00612" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa2/req" replace="instance" resultref="/root/main/sendvisalst"/>
- <submission id="TRAHA00613" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/indata" replace="instance" resultref="/root/tmp"/>
- <submission id="TRAHA00614" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/updata" replace="instance" resultref="/root/temp"/>
- <submission id="TRAHA00615" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/lettdata" replace="instance" resultref="/root/main/sendvisalst"/>
- <submission id="TRAHA00616" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/visadata/insdata/req" replace="instance" resultref="/root/temp"/>
- <submission id="TRAHA00617" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa3/req" replace="instance" resultref="/root/main/sendvisalst"/>
- <submission id="TRAHA00618" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/sendflag"/>
- <submission id="TRAHA00619" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp" replace="instance" resultref="/root/init/baseinfo/sendaddressflag"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fGetSendList()
- {
- var vHealExamFlag="G";
- //기관코드가 없을 시 리턴
- if(getUserInfo("dutplceinstcd")=='')
- return;
- //발송구분이 없을 시 리턴 -> 발송구분 자체가 쿼리가 결정됨 또한 국가 또한 결정 되므로
- if(cmb_sendflag.value==""){
- return;
- }
-
- //발송조회라면 "V" 즉 건진 완료자 재검을 어떻게 처리할 지 아직은 의문
- //일차 협의때 건진 일자 즉 접수일자로만 하는것으로 함 판정이라는 것이 따로
- //없고 종료가 될지 제대로 알수 없으므로 일단 판정일자는 차후 보류할 사항
- if(model.getValue("/root/main/sendresultflag")=='V'){
- model.setValue("/root/send/srchvisa/req/instcd",getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchvisa/req/sendflag",cmb_sendflag.value);
- model.setValue("/root/send/srchvisa/req/healexamflag",vHealExamFlag);
- model.setValue("/root/send/srchvisa/req/healexamdetlflag","G02");
-
- model.setValue("/root/send/srchvisa/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
- model.setValue("/root/send/srchvisa/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
-
- model.setValue("/root/send/srchvisa/req/pid",ipt_healexampid.currentText);
- model.setValue("/root/send/srchvisa/req/visano",ipt_visano.currentText);
- model.setValue("/root/send/srchvisa/req/brthareacnts",cmb_brthareacnts.value);
- submit("TRAHA00611");
- model.refresh();
-
- fBatchVisa();
- }else if(model.getValue("/root/main/sendresultflag")=='R'){ //발송 완료조회라면 "R"
-
- model.setValue("/root/send/srchvisa2/req/sendflag",cmb_sendflag.value);
- model.setValue("/root/send/srchvisa2/req/instcd",getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchvisa2/req/healexamflag",vHealExamFlag);
- model.setValue("/root/send/srchvisa2/req/healexamdetlflag",cmb_healexamdetlflag.value);
-
- model.setValue("/root/send/srchvisa2/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
- model.setValue("/root/send/srchvisa2/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
-
- model.setValue("/root/send/srchvisa2/req/pid",ipt_healexampid.currentText);
- model.setValue("/root/send/srchvisa2/req/visano",ipt_visano.currentText);
- model.setValue("/root/send/srchvisa2/req/brthareacnts",cmb_brthareacnts.value);
- submit("TRAHA00612");
- model.refresh();
-
- }else if(model.getValue("/root/main/sendresultflag")=='A'){ //전체
- model.setValue("/root/send/srchvisa3/req/sendflag",cmb_sendflag.value);
- model.setValue("/root/send/srchvisa3/req/instcd",getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchvisa3/req/healexamflag",vHealExamFlag);
- model.setValue("/root/send/srchvisa3/req/healexamdetlflag",cmb_healexamdetlflag.value);
-
- model.setValue("/root/send/srchvisa3/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
- model.setValue("/root/send/srchvisa3/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
-
- model.setValue("/root/send/srchvisa3/req/pid",ipt_healexampid.currentText);
- model.setValue("/root/send/srchvisa3/req/visano",ipt_visano.currentText);
- model.setValue("/root/send/srchvisa3/req/brthareacnts",cmb_brthareacnts.value);
- submit("TRAHA00617");
- model.refresh();
- }
- }
-
- /*************************************************************
- ** 발송구분 및 발송지 일괄 세팅***************
- *************************************************************/
- function fBatchVisa(){
- var vGrd_Rows=grd_sendvisalst.rows;
- for(var i=1;i<=vGrd_Rows-2;i++){
- //처음조회시 호주대사관 등 나라가 접수 되었을 시에 abcd그런것들이 자동으로검색되어 나타내어짐
- //즉 국가에 따라 구분이 된다는 뜻
- //호주 대사관 선택시
- if(cmb_sendflag.value=='A'){
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","A");
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendaddrflag","A1");
- }
- //호주 이민성 선택시
- if(cmb_sendflag.value=='B'){
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","B");
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendaddrflag","A2");
- }
- //전체 리스트 선택시
- if(cmb_sendflag.value=='C'){
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","C");
- }
-
- if(cmb_sendflag.value=='D'){
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","D");
- }
- //기타 결과지 선택시
- if(cmb_sendflag.value=="E"){
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","E");
- model.setValue("/root/main/sendvisalst/item["+ i +"]/sendaddrflag","D1");
- }
- }
- model.refresh();
- //모든 상태플래그 클리어
- grd_sendvisalst.clearStatus();
- }
-
-
-
-
- function fInitCtrl(bAll){
- if( bAll == true ){
-
- var curDt = getCurrentDate();
- var curDtf = toDatef();
- model.setValue(ipt_rsvfrdd.attribute("ref") , curDtf);
- model.setValue(ipt_rsvtodd.attribute("ref") , curDt);
- //model.setValue(ipt_senddd.attribute("ref") , curDt);
-
-
- }
- model.toggle("case_A");
- rdo_visaflag.value = "A";
- }
-
- function toDatef(){
- return getCurrentDate().toDate().getAddDate(-15,"D").getDateFormat();
- }
-
- function fSaveVisaList(){
-
-
- //발송 완료 조회를 선택 했을 시에 에러 메세지
- if(rdo_visaflag.value=="R"){
- messageBox("발송조회를","C001");
- return;
- }
-
-
- var cnt = grd_sendvisalst.rows;
- var sendChk = "1";
- for(i = 0 ; i<= cnt ;i++){
- if(model.getValue("/root/main/sendvisalst/item["+i+"]/sel")=="Y"){
- //발송구분을 넣지 않았을 시에
- if(model.getValue("/root/main/sendvisalst/item["+i+"]/sendflag")==""){
- messageBox("발송구분을 ","C001");
- return;
- }
- //발송지를 넣지 않았을 경우
- if(model.getValue("/root/main/sendvisalst/item["+i+"]/sendaddrflag")==""){
- messageBox("발송지를 ","C001");
- return;
- }
- //발송일자를 넣지 않았을 경우
- if(model.getValue("/root/main/sendvisalst/item["+i+"]/senddd")==""){
- messageBox("발송일자를 ","C001");
- return;
- }
- grd_sendvisalst.rowStatus(i) = 2;
- sendChk = "2";
- }
- }
- if(sendChk=="1"){
- messageBox("등록할인원을", "C001");
- }
- else{
- model.setValue("/root/send/save/indata", grd_sendvisalst.getUpdateData("update"));
- submit("TRAHA00613");
- }
- }
-
-
- /****************************************************************
- ********* 발송자 저장을위해 ***********************
- ****************************************************************/
- function fSaveSendList(){
- var ret = false ;
- if( messageBox("발송대상정보를","Q002")==6 ){
- model.setValue("/root/send/req/savesend", grd_send.getUpdateData() ) ;
-
- //발송대상
- var idx = grd_send.row;
- if( idx < 0) return ;
- var vSendFlag = model.getValue("/root/send/srcsendlflag");
- // alert(vSendFlag);
- model.setValue("/root/send/req/sendflag" , vSendFlag);
-
- //ret = submit("TXAHB00301");
- //ret = submit("TXAHA00801");
-
- var vSendDD = model.getValue("/root/send/batchset/senddd");
- var vSendAddrFlag = model.getValue("/root/send/batchset/sendaddrflag");
- var cnt = grd_send.rows;
- var sendChk = "1";
- for(i = 0 ; i<= cnt ;i++){
- if(model.getValue("/root/main/sendcdlst/item["+i+"]/sel")=="Y"){
- grd_send.rowStatus(i) = 2;
- sendChk = "2";
- }
- }
- if(sendChk=="1"){
- messageBox("등록할인원을", "C001");
- }else{
- model.setValue("/root/send/save/senddata", grd_send.getUpdateDataAll("u"));
- submit("TRAHA00803");
- }
- //fSendCheck();
- }
- return ret ;
- }
-
-
- /*************************************************************************************
- ***************** //발송 완료된 발송자 내용 수정시 업데이트 일괄 적으로 ******
- *************************************************************************************/
- function fSaveCommitList(){
- var sendChk = "true";
- // for( var i = 2 ; i <= grd_sendcommit.rows ; i++){
- // if(grd_sendcommit.valueMatrix(i,grd_sendcommit.colRef("sel")) == "Y") {
- // alert(i);
- // copyNodeListType("/root/send/save/updata", "/root/main/sendvisalst/item2["+i+"]", "after");
- // sendChk = "true";
- // }
- // }
-
- nodeList = instance1.selectNodes("/root/main/sendvisalst/item2[sel ='Y']");
- var updata = getNodeListCSV(nodeList);
- if(sendChk == "false"){
- messageBox("수정할 건진자를", "C001");
- }else{
-
- model.setValue("/root/send/save/updata", updata);
- submit("TRAHA00614")
- }
- }
- //초기화 함수
- function fnit(){
- model.reset("/root/main/sendvisalst/item");
- model.reset("/root/main/sendvisalst/item2");
- model.reset("/root/main/sendvisalst/item3");
- model.resetInstanceNode("/root/main/letterlist/item3");
- }
-
- function fSendCheck()
- {
-
- }
- //일괄적용
- /*
- function fBatchSet()
- {
- var senddd = model.getValue("/root/send/batchset/senddd");
-
- if(model.getValue("/root/send/batchset/sendyn")=="Y"){
- var cnt = grd_send.rows;
- for (i=1;i<cnt-1;i++){
- model.setValue("/root/main/sendcdlst/item[" + i + "]/sel","Y");
- if(senddd!=""){
- model.setValue("/root/main/sendcdlst/item[" + i + "]/senddd",senddd);
- }
- model.setValue("/root/main/sendcdlst/item[" + i + "]/sendaddrflag" , model.getValue("/root/send/batchset/sendaddrflag"));
- }
- }
- else{
- var cnt = grd_send.rows;
- for (i=1;i<cnt-1;i++){
- model.setValue("/root/main/sendcdlst/item[" + i + "]/sel","N");
- }
- }
- model.refresh();
- }
-
- */
-
-
-
- /********************************************************
- *********** 비자레터 테이블 더블 클릭시 레터 조회 ******
- ********************************************************/
-
-
- function fSrchLetter(){
-
- //현재 선택한 로우를 반환
- var vGrd_commit=grd_sendcommit.row;
- var vGrd_commit2=grd_sendcommit.row-1;
- var vGrd_commit3=grd_sendcommit.row+1;
-
- //입력이 없을시에 메세지 표시
- //fMsgCheck();
- //선택한 테이블이 없다는 뜻
- // alert(vGrd_commit2);
- if(vGrd_commit2==-1){
- messageBox("레터저장할 인원을 ","C001");
- return;
- }
-
-
-
- model.setValue("/root/send/save/lettdata/sel",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/sel"));
- model.setValue("/root/send/save/lettdata/sendflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/sendflag"));
- model.setValue("/root/send/save/lettdata/printyn",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/printyn"));
- model.setValue("/root/send/save/lettdata/senddd",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/senddd"));
- model.setValue("/root/send/save/lettdata/sendaddressflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/sendaddressflag"));
- model.setValue("/root/send/save/lettdata/pid",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/pid"));
- model.setValue("/root/send/save/lettdata/visano",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/visano"));
- model.setValue("/root/send/save/lettdata/engnm",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/engnm"));
- model.setValue("/root/send/save/lettdata/rrgstno",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/rrgstno"));
- model.setValue("/root/send/save/lettdata/engaddress",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/engaddress"));
- model.setValue("/root/send/save/lettdata/orddd",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/orddd"));
- model.setValue("/root/send/save/lettdata/healexamflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/healexamflag"));
- model.setValue("/root/send/save/lettdata/instcd",getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/save/lettdata/healexamdetlflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/healexamdetlflag"));
- model.setValue("/root/send/save/lettdata/pkgnm",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/pkgnm"));
- model.setValue("/root/send/save/lettdata/hngnm",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/hngnm"));
- model.setValue("/root/send/save/lettdata/pkgcd",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/pkgcd"));
-
-
-
-
-
- //alert(model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit + "]/sel"));
- //alert(model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]"));
- //alert(model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit3 + "]/sel"));
- //var vCommit_data=grd_sendcommit.rowData(grd_sendcommit.row);
-
- //alert(vCommit_data);
- //model.setValue("/root/send/save/lettdata",vCommit_data);
- submit("TRAHA00615");
- model.setValue("/root/main/letterlist/item3/subclass",model.getValue("/root/main/sendvisalst/item2/subclass"));
- model.setValue("/root/main/letterlist/item3/requiretest",model.getValue("/root/main/sendvisalst/item2/requiretest"));
- model.setValue("/root/main/letterlist/item3/resultoftest",model.getValue("/root/main/sendvisalst/item2/resultoftest"));
- model.setValue("/root/main/letterlist/item3/specialoption",model.getValue("/root/main/sendvisalst/item2/specialoption"));
- model.setValue("/root/main/letterlist/item3/letterdoctor",model.getValue("/root/main/sendvisalst/item2/letterdoctor"));
- model.setValue("/root/main/letterlist/item3/letterdoctordept",model.getValue("/root/main/sendvisalst/item2/letterdoctordept"));
- //서명 들어갈 부분
- //model.setValue("",model.getValue(""));
- //model.refresh();
-
- }
- /*******************************************************************
- ******** 발송자 완료 입력 체크 함수 *****************
- *******************************************************************/
-
- function fMsgCheck(){
- //현재 선택한 로우를 반환
- var vGrd_commit=grd_sendcommit.row;
-
- //차후 함수로 구현해야 할듯
- if(grd_sendcommit.valueMatrix(vGrd_commit,2)==""){
- messageBox("발송구분을 ","C001");
- return;
- }
-
- if(grd_sendcommit.valueMatrix(vGrd_commit,6)==""){
- messageBox("등록번호를 ","C001");
- return;
- }
-
- if(grd_sendcommit.valueMatrix(vGrd_commit,7)==""){
- messageBox("비자년번를 ","C001");
- return;
- }
-
- if(grd_sendcommit.valueMatrix(vGrd_commit,11)==""){
- messageBox("건진일자를 ","C001");
- return;
- }
-
- if(grd_sendcommit.valueMatrix(vGrd_commit,17)==""){
- messageBox("패키지코드를 ","C001");
- return;
- }
- }
- /**********************************************************
- ******** 비자레터 내용을 저장
- 업데이트 시키므로 인서트 할 필요가 없다 ******
- ***********************************************************/
- function fSaveLetter(){
- //현재 선택한 행
- var vComit_row=grd_sendcommit.bottomRow-1;
-
- //업데이트 할 데이터시 필요한 데이터 유무 체크
- //fMsgCheck();
-
- //조회된 발송 완료자가 없을 시에
-
- if(grd_sendcommit.rows==-1){
- messageBox("저장할 테이블이 없습니다","C001");
- return;
- }
-
- var nodeList = instance1.selectNodes(grd_sendvisalst.nodeset + "[sel='Y']");
- for( var i = 0 ; i <= nodeList.length ; i++){
- copyNodeListType("/root/send/visadata/insdata/req", "/root/main/sendvisalst/item["+ i +"]", "after");
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/sel"));
- // model.setValue("/root/send/visadata/insdata/req/sendflag",model.getValue("/root/main/sendvisalst/item[" + i + "]/sendflag"));
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/sendflag"));
- // model.setValue("/root/send/visadata/insdata/req/senddd",model.getValue("/root/main/sendvisalst/item[" + i + "]/senddd"));
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/senddd"));
- // model.setValue("/root/send/visadata/insdata/req/sendaddressflag",model.getValue("/root/main/sendvisalst/item[" + i + "]/sendaddressflag"));
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/sendaddressflag"));
- // model.setValue("/root/send/visadata/insdata/req/pid",model.getValue("/root/main/sendvisalst/item[" + i + "]/pid"));
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/pid"));
- // model.setValue("/root/send/visadata/insdata/req/visano",model.getValue("/root/main/sendvisalst/item[" + i + "]/visano"));
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/visano"));
- // model.setValue("/root/send/visadata/insdata/req/orddd",model.getValue("/root/main/sendvisalst/item[" + i + "]/orddd"));
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/orddd"));
- // model.setValue("/root/send/visadata/insdata/req/healexamflag",fGetHealExamFlag());
- // model.setValue("/root/send/visadata/insdata/req/instcd",getUserInfo("dutplceinstcd"));
- // model.setValue("/root/send/visadata/insdata/req/healexamdetlflag",model.getValue("/root/main/sendvisalst/item[" + i + "]/healexamdetlflag"));
- // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/healexamdetlflag"));
- }
-
- // model.setValue("/root/send/visadata/insdata/req/subclass",tar_subclass.currentText);
- // model.setValue("/root/send/visadata/insdata/req/requiretest",tar_requiretest.currentText);
- // model.setValue("/root/send/visadata/insdata/req/resultoftest",tar_resultoftest.currentText);
- // model.setValue("/root/send/visadata/insdata/req/specialoption",tar_specialoption.currentText);
- // model.setValue("/root/send/visadata/insdata/req/letterdoctor",cmb_doctorlst.value);
- // model.setValue("/root/send/visadata/insdata/req/letterdoctordept",cmb_doctordeptlst.value);
- submit("TRAHA00616");
- model.refresh();
-
- }
-
- function fValChange(){
- //발송조회 혹은 전체
- if(rdo_visaflag.value=="A" || rdo_visaflag.value=="V"){
- cap_gun.visible=true;
- cap_val.visible=false;
- }
- //발송완료 조회라면
- if(rdo_visaflag.value=="R"){
- cap_gun.visible=false;
- cap_val.visible=true;
- }
- }
-
- /***************************************************************
- ******** 일반 출력을 발송에 따라 출력 *********************
- ****************************************************************/
- function fNormalPrint(){
- model.removeNodeset("/root/tmp/print/letter/item2");
-
- for( var i = 0 ; i <= grd_sendcommit.rows ; i++){
- if(grd_sendcommit.valueMatrix(i,grd_sendcommit.colRef("sel")) == "Y") {
- //alert(i);
- var idx = i -1;
- copyNodeListType("/root/tmp/print/letter", "/root/main/sendvisalst/item2["+ idx +"]", "after");
- }
- }
-
- // 서울 호주 대사관 : A
- // 호주 이민 가족단위 : B
- // 비자건진 리스트 : C
- // 비자레터 : D
- // 기타해외 결과 : E
- // 비자건진 영문 결과지:F
- // 필리핀 결과지:G
- if(cmb_sendflag.value == "A"){
- exeReportPreview("RPAHR00304", "XMLSTR", "", "", "false","","","","","true", "", "");
- }else if(cmb_sendflag.value == "B"){
- exeReportPreview("RPAHR00301", "XMLSTR", "", "", "false","","","","","true", "", "");
- }else if(cmb_sendflag.value == "E"){
- exeReportPreview("RPAHR00302", "XMLSTR", "", "", "false","","","","","true", "", "");
- }else if(cmb_sendflag.value == "G"){
- exeReportPreview("RPAHR00306", "XMLSTR", "", "", "false","","","","","true", "", "");
- }else if(cmb_sendflag.value == "F"){
- exeReportPreview("RPAHR00305", "XMLSTR", "", "", "false","","","","","true", "", "");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;2,785;2,755;2,750;2,384;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fnit();
- //나중에 비자레터로 인해 바뀔수도 있다.....
- //또한 주소입력때문에바뀔수도
- fGetSendList();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1127px; y1:7px; x2:1127px; y2:29px; "/>
- <button id="btn_srchpat" class="icon_search" style="left:890px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00820", "pnm", ipt_healexampid.currentText , "N", "/root/send" ,ipt_healexampid.attribute("ref"), ipt_healexampnm.attribute("ref") );
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:730px; top:8px; width:89px; height:17px; ">환자검색 :</caption>
- <select1 id="cmb_sendflag" ref="/root/send/srchsendflag" class="combo_search" appearance="minimal" style="left:211px; top:8px; width:89px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_sendflag.value == "G" || cmb_sendflag.value == "F" || cmb_sendflag.value == "E") {
- cmb_brthareacnts.select(2);
- }else{
- cmb_brthareacnts.select(1);
- }
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:140px; top:8px; width:76px; height:17px; ">구분2 :</caption>
- <output id="ipt_healexampnm" ref="/root/send/ipt_pnm" class="output_fix" style="left:910px; top:8px; width:55px; height:19px; "/>
- <input id="ipt_healexampid" ref="/root/send/healexampid" class="input_search" style="left:820px; top:8px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_srchpat", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:621px; top:10px; width:15px; height:20px; ">~</caption>
- <caption id="cap_gun" class="search_name" style="left:435px; top:8px; width:92px; height:17px; ">예약/건진일자 :</caption>
- <input id="ipt_rsvfrdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:526px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_rsvtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:637px; top:8px; width:90px; height:19px; "/>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:205px; top:8px; width:82px; height:17px; ">건진상세구분 :</caption>
- <select1 id="cmb_healexamdetlflag" ref="/root/send/healexamdetlflag" class="combo_search" visibility="hidden" appearance="minimal" sep="^" style="left:306px; top:8px; width:94px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0070">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:305px; top:8px; width:67px; height:17px; ">국가 :</caption>
- <select1 id="cmb_brthareacnts" ref="/root/send/brthareacnts" class="combo_search" appearance="minimal" sep="^" style="left:370px; top:8px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/nationlst/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption19" class="search_name" style="left:980px; top:8px; width:64px; height:17px; ">년번 :</caption>
- <input id="ipt_visano" ref="/root/send/visano" class="input_search" max="10" style="left:1050px; top:8px; width:70px; height:19px; "/>
- <caption id="cap_val" class="search_name" visibility="hidden" style="left:435px; top:8px; width:87px; height:17px; ">발 송 일 자 :</caption>
- <caption id="caption24" class="search_name" style="left:5px; top:8px; width:60px; height:17px; ">구분 :</caption>
- <select1 id="cmb_sendgubun" ref="/root/send/sendgubun" appearance="minimal" style="left:65px; top:8px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>발송지</label>
- <value>S</value>
- </item>
- <item>
- <label>서식지</label>
- <value>L</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRAHA00618");
- model.refresh();
- cmb_sendflag.select(0);
- ]]>
- </script>
- </select1>
- </group>
- <switch id="swt_send" style="left:0px; top:73px; width:1194px; height:660px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_T" style="left:0px; top:0px; width:1192px; height:667px; ">
- <caption id="caption1" class="tit_2" style="left:6px; top:4px; width:95px; height:14px; ">발송대상정보</caption>
- <line id="line1" class="line_1" style="x1:1px; y1:18px; x2:1185px; y2:18px; "/>
- <input id="ipt_senddd" ref="/root/send/batchset/senddd" class="input_essential" inputtype="date" style="left:90px; top:29px; width:108px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- ]]>
- </script>
- </input>
- <select1 id="rdo_sendyn" ref="/root/send/batchset/sendyn" overflow="visible" appearance="full" cols="2" rows="1" style="left:287px; top:30px; width:63px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption15" class="cell_1" style="left:6px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송일자</caption>
- <caption id="caption17" class="cell_1" style="left:201px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송처리Y/N</caption>
- <select1 id="rdo_sendaddr" ref="/root/send/batchset/sendaddrflag" overflow="visible" appearance="full" cols="6" rows="1" style="left:438px; top:30px; width:483px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/addcdlst/A0468">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_betsave" class="btn2_letter4" style="left:934px; top:29px; width:64px; height:19px; ">
- <caption>일괄적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fBatchSet();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:352px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송주소</caption>
- <datagrid id="grd_sendvisalst" nodeset="/root/main/sendvisalst/item" visibility="visible" autoresize="false" caption="선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자|선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자" colsep="^" colwidth="39, 110, 31, 70, 85, 75, 82, 100, 97, 105, 100, 100, 100, 100, 100, 50, 50, 50, 50, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycol" rowheader="update" rowsep="|" style="left:3px; top:23px; width:1189px; height:639px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="sendflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="printyn" type="checkbox" visibility="hidden"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="senddd" type="inputdate"/>
- <col ref="sendaddrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sendaddressflag/A0468">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="visano"/>
- <col ref="engnm"/>
- <col ref="hngnm"/>
- <col ref="rrgstno" format="999999-9******"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="pkgnm"/>
- <col checkvalue="Y,N" ref="etcuse26" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcuse160" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcusexray" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcuseother" type="checkbox"/>
- <col ref="trnfileno" type="input"/>
- <col ref="remarks" type="input"/>
- <col ref="courcmpy" type="combo">
- <choices>
- <item>
- <label>EMS</label>
- <value>ems</value>
- </item>
- <item>
- <label>DHL</label>
- <value>dhl</value>
- </item>
- </choices>
- </col>
- <col ref="courtracno" type="input"/>
- <col ref="labrslt" type="input"/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden" style="left:2465px; top:43px; width:100px; height:23px; "/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <!--script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // submit("TRAHA00618");
- // model.refresh();
- // cmb_sendflag.select(0);
- if(grd_sendvisalst.colRef("sendflag") == grd_sendvisalst.col){
- var row = grd_sendvisalst.row;
- model.setValue("/root/send/tmp/sendflag", grd_sendvisalst.valueMatrix(row, grd_sendvisalst.colRef("sendflag")));
- submit("TRAHA00619");
- model.refresh();
- }
- ]]>
- </script-->
- </datagrid>
- <!--select id="checkbox1" ref="/root/tmp/item/26_sendvisalst" overflow="visible" appearance="full" style="left:1002px; top:2px; width:15px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </select>
- <select id="checkbox2" overflow="visible" appearance="full" style="left:1052px; top:2px; width:15px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </select>
- <select id="checkbox3" overflow="visible" appearance="full" style="left:1102px; top:2px; width:15px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </select>
- <select id="checkbox4" overflow="visible" appearance="full" style="left:1152px; top:2px; width:15px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </select-->
- </case>
- <case id="case_L" style="left:0px; top:0px; width:1192px; height:667px; ">
- <line id="line2" class="line_1" style="x1:1px; y1:23px; x2:1185px; y2:23px; "/>
- <datagrid id="grd_sendcommit" nodeset="/root/main/sendvisalst/item2" visibility="visible" caption="선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자|선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자" colsep="^" colwidth="39, 110, 31, 70, 85, 75, 82, 100, 97, 105, 100, 100, 100, 100, 100, 50, 50, 50, 50, 100, 100, 100, 100, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycol" rowheader="update" rowsep="|" style="left:0px; top:25px; width:1189px; height:639px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="sendflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="printyn" type="checkbox" visibility="hidden"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="senddd" type="inputdate"/>
- <col ref="sendaddrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sendaddressflag/A0468">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="visano"/>
- <col ref="engnm"/>
- <col ref="hngnm"/>
- <col ref="rrgstno" format="999999-9******"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="pkgnm"/>
- <col checkvalue="Y,N" ref="etcuse26" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcuse160" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcusexray" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcuseother" type="checkbox"/>
- <col ref="trnfileno" type="input"/>
- <col ref="remarks" type="input"/>
- <col ref="courcmpy" type="combo">
- <choices>
- <item>
- <label>EMS</label>
- <value>ems</value>
- </item>
- <item>
- <label>DHL</label>
- <value>dhl</value>
- </item>
- </choices>
- </col>
- <col ref="courtracno" type="input"/>
- <col ref="labrslt" type="input"/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden" style="left:2465px; top:43px; width:100px; height:23px; "/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <!--script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSrchLetter();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSrchLetter();
- ]]>
- </script-->
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:6px; top:4px; width:95px; height:14px; ">발송완료정보</caption>
- </case>
- <case id="case_A" selected="true" style="left:0px; top:0px; width:1192px; height:667px; ">
- <caption id="caption4" class="tit_2" style="left:6px; top:4px; width:144px; height:13px; ">발송 대상/완료 정보</caption>
- <line id="line3" class="line_1" style="x1:1px; y1:18px; x2:1185px; y2:18px; "/>
- <input id="input1" ref="/root/send/batchset/senddd" class="input_essential" inputtype="date" style="left:90px; top:35px; width:108px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- ]]>
- </script>
- </input>
- <select1 id="radio1" ref="/root/send/batchset/sendyn" overflow="visible" appearance="full" cols="2" rows="1" style="left:287px; top:30px; width:63px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="cell_1" style="left:6px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송일자</caption>
- <caption id="caption11" class="cell_1" style="left:201px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송처리Y/N</caption>
- <select1 id="radio2" ref="/root/send/batchset/sendaddrflag" overflow="visible" appearance="full" cols="6" rows="1" style="left:438px; top:30px; width:483px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/addcdlst/A0468">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_sendall" nodeset="/root/main/sendvisalst/item3" visibility="visible" autoresize="false" caption="선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자|선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자" colsep="^" colwidth="39, 110, 31, 70, 70, 75, 82, 100, 97, 105, 83, 100, 100, 117, 100, 50, 50, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycol" rowheader="update" rowsep="|" style="left:0px; top:22px; width:1189px; height:639px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="sendflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="printyn" type="checkbox" visibility="hidden"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="senddd" format="yyyy-mm-dd"/>
- <col ref="sendaddrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sendaddressflag/A0468">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="visano"/>
- <col ref="engnm"/>
- <col ref="hngnm"/>
- <col ref="rrgstno" format="999999-9******"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="pkgnm"/>
- <col checkvalue="Y,N" ref="etcuse26" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcuse160" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcusexray" type="checkbox"/>
- <col checkvalue="Y,N" ref="etcuseother" type="checkbox"/>
- <col ref="trnfileno" type="input"/>
- <col ref="remarks" type="input"/>
- <col ref="courcmpy" type="combo">
- <choices>
- <item>
- <label>EMS</label>
- <value>ems</value>
- </item>
- <item>
- <label>DHL</label>
- <value>dhl</value>
- </item>
- </choices>
- </col>
- <col ref="courtracno" type="input"/>
- <col ref="labrslt" type="input"/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden" style="left:2465px; top:43px; width:100px; height:23px; "/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_case_t" class="btn_sw" group="tab" selected="true" style="left:74px; top:49px; width:69px; height:22px; ">
- <caption>발송대상</caption>
- <toggle case="case_T" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_visaflag.value='V';
- btn_save.attribute("visibility") = "visible";
- fValChange();
- ]]>
- </script>
- </button>
- <button id="btn_case_l" class="btn_sw" group="tab" style="left:143px; top:49px; width:69px; height:22px; ">
- <caption>발송내역</caption>
- <toggle case="case_L" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_visaflag.value='R';
- btn_save.attribute("visibility") = "visible";
- fValChange();
- ]]>
- </script>
- </button>
- <group id="grp_letter" visibility="hidden" style="left:10px; top:290px; width:1170px; height:373px; ">
- <caption id="caption13" class="cell_1" style="left:0px; top:48px; width:95px; height:45px; vertical-align:middle; ">Required tests</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:97px; width:95px; height:75px; vertical-align:middle; ">Result of required tests</caption>
- <caption id="caption16" class="tit_2" style="left:0px; top:0px; width:104px; height:13px; ">비자레터 정보</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:176px; width:95px; height:85px; vertical-align:middle; ">Specialist Opnion</caption>
- <caption id="caption20" class="cell_1" style="left:0px; top:15px; width:95px; height:30px; vertical-align:middle; ">서브클래스</caption>
- <textarea id="tar_resultoftest" ref="/root/main/letterlist/item3/resultoftest" style="left:98px; top:98px; width:1069px; height:77px; "/>
- <textarea id="tar_specialoption" ref="/root/main/letterlist/item3/specialoption" style="left:98px; top:176px; width:1069px; height:86px; "/>
- <textarea id="tar_requiretest" ref="/root/main/letterlist/item3/requiretest" style="left:98px; top:50px; width:1069px; height:45px; "/>
- <textarea id="tar_subclass" ref="/root/main/letterlist/item3/subclass" style="left:98px; top:15px; width:1069px; height:30px; "/>
- <select1 id="cmb_doctordeptlst" ref="/root/main/letterlist/item3/letterdoctordept" class="combo_default" appearance="minimal" style="left:101px; top:320px; width:269px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/doctordeptlst/A0485">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" style="left:4px; top:284px; width:60px; height:20px; vertical-align:middle; ">서명의사</caption>
- <caption id="caption22" class="cell_1" style="left:10px; top:320px; width:84px; height:20px; vertical-align:middle; ">서명의사부서</caption>
- <select1 id="cmb_doctorlst" ref="/root/main/letterlist/item3/letterdoctor" class="combo_default" appearance="minimal" style="left:69px; top:284px; width:446px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/doctorlst/A0484">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="textarea1" ref="/root/main/letterlist/item3/resultoftest" style="left:98px; top:98px; width:1069px; height:77px; "/>
- </group>
- <button id="btn_grdsize" class="btn2_letter3" visibility="hidden" style="left:1110px; top:50px; width:53px; height:19px; ">
- <caption>펼치기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( btn_grdsize.attribute("text") == "펼치기"){
- grp_letter.visible=false;
-
-
-
- btn_grdsize.attribute("text") = "줄이기";
-
- swt_send.attribute("height") = parseInt(swt_send.attribute("height")) + parseInt(grp_letter.attribute("height") );
- grd_sendvisalst.attribute("height") = parseInt(grd_sendvisalst.attribute("height")) + parseInt(grp_letter.attribute("height")) ;
- grd_sendcommit.attribute("height") = parseInt(grd_sendcommit.attribute("height")) + parseInt(grp_letter.attribute("height")) ;
- //grd_cncllst.attribute("width") = parseInt(grd_cncllst.attribute("width")) + parseInt(swt_visa.attribute("width")) ;
-
-
-
-
-
-
- // swt_acptlst.attribute("width") = parseInt(swt_acptlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
- // grd_acptlst.attribute("width") = parseInt(grd_acptlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
- // grd_rsrvlst.attribute("width") = parseInt(grd_rsrvlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
- // grd_cncllst.attribute("width") = parseInt(grd_cncllst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
-
- }
- else {
-
- btn_grdsize.attribute("text") ="펼치기";
-
- swt_send.attribute("height") = parseInt(swt_send.attribute("height"))-parseInt(grp_letter.attribute("height") );
- grd_sendvisalst.attribute("height") = parseInt(grd_sendvisalst.attribute("height")) - parseInt(grp_letter.attribute("height")) ;
- grd_sendcommit.attribute("height") = parseInt(grd_sendcommit.attribute("height")) - parseInt(grp_letter.attribute("height")) ;
- grp_letter.visible=false;
- }
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_visaflag" ref="/root/main/sendresultflag" visibility="hidden" overflow="visible" appearance="full" cols="4" rows="1" style="left:225px; top:53px; width:265px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>발송조회</label>
- <value>V</value>
- </item>
- <item>
- <label>발송완료조회</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValChange();
-
- ]]>
- </script>
- </select1>
- <button id="button2" class="btn_sw" group="tab" selected="true" style="left:5px; top:49px; width:69px; height:22px; ">
- <caption>전체</caption>
- <toggle case="case_A" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_visaflag.value='A';
- btn_save.attribute("visibility") = "hidden";
- fValChange();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:39px; ">
- <button id="button9" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1135px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //발송 조회 저장이라면
- if(model.getValue("/root/main/sendresultflag")=='V'){
- fSaveVisaList();
- btn_search.dispatch("DOMActivate");
- }
- //발송 완료자 조회라면
- else if(model.getValue("/root/main/sendresultflag")=="R"){
- fSaveCommitList();
- btn_search.dispatch("DOMActivate");
- }else if(model.getValue("/root/main/sendresultflag")=="A"){
- return;
- }
-
-
- ]]>
- </script>
- </button>
- <button id="btn_normal_print" class="btn6_letter4" style="left:7px; top:5px; width:80px; height:22px; ">
- <caption>일반출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNormalPrint();
- ]]>
- </script>
- </button>
- <button id="btn_letter_print" class="btn6_letter4" style="left:90px; top:5px; width:80px; height:22px; ">
- <caption>레터출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 초기화
- model.removeNodeset("/root/tmp/print/letter/item");
- var nodeList = null;
- var visaData = "";
- if(rdo_visaflag.value== "V"){
- nodeList = instance1.selectNodes("/root/main/sendvisalst/item[sel ='Y']");
- visaData = getNodeListCSV(nodeList);
- }else if(rdo_visaflag.value== "R"){
- nodeList = instance1.selectNodes("/root/main/sendvisalst/item2[sel ='Y']");
- visaData = getNodeListCSV(nodeList);
- }else if(rdo_visaflag.value== "A"){
- nodeList = instance1.selectNodes("/root/main/sendvisalst/item3[sel ='Y']");
- visaData = getNodeListCSV(nodeList);
- }
- setCSVToNode("/root/tmp/print/letter" ,visaData , "item");
- exeReportPreview("RPAHR00310", "XMLSTR", "", "", "false","","","","","true", "", "");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter4" visibility="hidden" style="left:1050px; top:5px; width:80px; height:22px; ">
- <caption>레터저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //alert(grd_sendcommit.rows);
- fSaveLetter();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption23" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">발송관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|